home *** CD-ROM | disk | FTP | other *** search
/ Amiga News 95 / Amiga News 95.iso / dpat / dpat48 / dearch / sources / dearch_strings.h < prev    next >
C/C++ Source or Header  |  1993-11-14  |  10KB  |  334 lines

  1. #ifndef DEARCH_STRINGS_H
  2. #define DEARCH_STRINGS_H
  3.  
  4.  
  5. /****************************************************************************/
  6.  
  7.  
  8. /* This file was created automatically by CatComp.
  9.  * Do NOT edit by hand!
  10.  */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifdef CATCOMP_ARRAY
  18. #undef CATCOMP_NUMBERS
  19. #undef CATCOMP_STRINGS
  20. #define CATCOMP_NUMBERS
  21. #define CATCOMP_STRINGS
  22. #endif
  23.  
  24. #ifdef CATCOMP_BLOCK
  25. #undef CATCOMP_STRINGS
  26. #define CATCOMP_STRINGS
  27. #endif
  28.  
  29.  
  30. /****************************************************************************/
  31.  
  32.  
  33. #ifdef CATCOMP_NUMBERS
  34.  
  35. #define MSG_MAINGADSOURCE 0
  36. #define MSG_MAINGADDEST 1
  37. #define MSG_MAINGAD20 2
  38. #define MSG_MAINGAD30 3
  39. #define MSG_MAINGADARCHI 4
  40. #define MSG_MAINGADQUIT 5
  41. #define MSG_MAINGADHIDE 6
  42. #define MSG_MAINGADOK 7
  43. #define MSG_ARCHIGAD00 8
  44. #define MSG_ARCHIGADLIST 9
  45. #define MSG_ARCHIGADOK 10
  46. #define MSG_ARCHIGADDEL 11
  47. #define MSG_ARCHIGADUSE 12
  48. #define MSG_ARCHIGADADD 13
  49. #define MSG_ARCHIGADSAVE 14
  50. #define MSG_ARCHIGADEDIT 15
  51. #define MSG_PREFSGADCANCEL 16
  52. #define MSG_PREFSGADOK 17
  53. #define MSG_PREFSGADEXT 18
  54. #define MSG_PREFSGADCOM 19
  55. #define MSG_PREFSGADREP 20
  56. #define MSG_MAINASLSOURCE 21
  57. #define ERROR_MAINASLSOURCE 22
  58. #define MSG_MAINASLDIR 23
  59. #define ERROR_MAINASLDIR 24
  60. #define ERROR_MAINWINDOW 25
  61. #define ERROR_MAINSOURCEFILE 26
  62. #define ERROR_MAINDIR 27
  63. #define ERROR_MAINNOTEXT 28
  64. #define ERROR_MAINLIB 29
  65. #define ERROR_MAINSETUP 30
  66. #define ERROR_MAINWIND 31
  67. #define ERROR_MAINPORT 32
  68. #define ERROR_MAINBROKER 33
  69. #define ERROR_MAINHOTKEY 34
  70. #define ERROR_MAINCOM 35
  71. #define MSG_TITLE_MAINWINDOW 36
  72. #define MSG_TITLE_ARCHIWINDOW 37
  73. #define MSG_TITLE_PREFSWINDOW 38
  74. #define MSG_COPYRIGHT 39
  75. #define MSG_USE 40
  76. #define MSG_ACTIVE 41
  77.  
  78. #endif /* CATCOMP_NUMBERS */
  79.  
  80.  
  81. /****************************************************************************/
  82.  
  83.  
  84. #ifdef CATCOMP_STRINGS
  85.  
  86. #define MSG_MAINGADSOURCE_STR "Source"
  87. #define MSG_MAINGADDEST_STR "Dest."
  88. #define MSG_MAINGAD20_STR ""
  89. #define MSG_MAINGAD30_STR ""
  90. #define MSG_MAINGADARCHI_STR "Archivers"
  91. #define MSG_MAINGADQUIT_STR "Quit"
  92. #define MSG_MAINGADHIDE_STR "Hide"
  93. #define MSG_MAINGADOK_STR "OK"
  94. #define MSG_ARCHIGAD00_STR ""
  95. #define MSG_ARCHIGADLIST_STR "Archivers List"
  96. #define MSG_ARCHIGADOK_STR "_OK"
  97. #define MSG_ARCHIGADDEL_STR "_Suppress"
  98. #define MSG_ARCHIGADUSE_STR "_Use"
  99. #define MSG_ARCHIGADADD_STR "_Add"
  100. #define MSG_ARCHIGADSAVE_STR "Sa_ve"
  101. #define MSG_ARCHIGADEDIT_STR "_Edit"
  102. #define MSG_PREFSGADCANCEL_STR "C_ancel"
  103. #define MSG_PREFSGADOK_STR "_OK"
  104. #define MSG_PREFSGADEXT_STR "_Extension"
  105. #define MSG_PREFSGADCOM_STR "_Command"
  106. #define MSG_PREFSGADREP_STR "Di_rectory"
  107. #define MSG_MAINASLSOURCE_STR "Search the source file to extract"
  108. #define ERROR_MAINASLSOURCE_STR "Can't open the sourve file requester"
  109. #define MSG_MAINASLDIR_STR "Search the directory name"
  110. #define ERROR_MAINASLDIR_STR "Can't open the directory requester"
  111. #define ERROR_MAINWINDOW_STR "Can't open the archivers window"
  112. #define ERROR_MAINSOURCEFILE_STR "Can't find the source file"
  113. #define ERROR_MAINDIR_STR "Unknown directory"
  114. #define ERROR_MAINNOTEXT_STR "Unknown extension"
  115. #define ERROR_MAINLIB_STR "V39 required"
  116. #define ERROR_MAINSETUP_STR "Can't init boopsi gadgets"
  117. #define ERROR_MAINWIND_STR "Can't open main window"
  118. #define ERROR_MAINPORT_STR "Can't create the MsgPort"
  119. #define ERROR_MAINBROKER_STR "Can't init broker"
  120. #define ERROR_MAINHOTKEY_STR "Unknown Hotkey"
  121. #define ERROR_MAINCOM_STR "Can't init commoditie"
  122. #define MSG_TITLE_MAINWINDOW_STR "Archiver - Keys -> "
  123. #define MSG_TITLE_ARCHIWINDOW_STR "Archivers List"
  124. #define MSG_TITLE_PREFSWINDOW_STR "Preferences"
  125. #define MSG_COPYRIGHT_STR "DeArch version 1.0 © Pat 1993"
  126. #define MSG_USE_STR "An easy de-archiver under Intuition"
  127. #define MSG_ACTIVE_STR "DeArch is already running, use Hotkeys or Exchange"
  128.  
  129. #endif /* CATCOMP_STRINGS */
  130.  
  131.  
  132. /****************************************************************************/
  133.  
  134.  
  135. #ifdef CATCOMP_ARRAY
  136.  
  137. struct CatCompArrayType
  138. {
  139.     LONG   cca_ID;
  140.     STRPTR cca_Str;
  141. };
  142.  
  143. static const struct CatCompArrayType CatCompArray[] =
  144. {
  145.     {MSG_MAINGADSOURCE,(STRPTR)MSG_MAINGADSOURCE_STR},
  146.     {MSG_MAINGADDEST,(STRPTR)MSG_MAINGADDEST_STR},
  147.     {MSG_MAINGAD20,(STRPTR)MSG_MAINGAD20_STR},
  148.     {MSG_MAINGAD30,(STRPTR)MSG_MAINGAD30_STR},
  149.     {MSG_MAINGADARCHI,(STRPTR)MSG_MAINGADARCHI_STR},
  150.     {MSG_MAINGADQUIT,(STRPTR)MSG_MAINGADQUIT_STR},
  151.     {MSG_MAINGADHIDE,(STRPTR)MSG_MAINGADHIDE_STR},
  152.     {MSG_MAINGADOK,(STRPTR)MSG_MAINGADOK_STR},
  153.     {MSG_ARCHIGAD00,(STRPTR)MSG_ARCHIGAD00_STR},
  154.     {MSG_ARCHIGADLIST,(STRPTR)MSG_ARCHIGADLIST_STR},
  155.     {MSG_ARCHIGADOK,(STRPTR)MSG_ARCHIGADOK_STR},
  156.     {MSG_ARCHIGADDEL,(STRPTR)MSG_ARCHIGADDEL_STR},
  157.     {MSG_ARCHIGADUSE,(STRPTR)MSG_ARCHIGADUSE_STR},
  158.     {MSG_ARCHIGADADD,(STRPTR)MSG_ARCHIGADADD_STR},
  159.     {MSG_ARCHIGADSAVE,(STRPTR)MSG_ARCHIGADSAVE_STR},
  160.     {MSG_ARCHIGADEDIT,(STRPTR)MSG_ARCHIGADEDIT_STR},
  161.     {MSG_PREFSGADCANCEL,(STRPTR)MSG_PREFSGADCANCEL_STR},
  162.     {MSG_PREFSGADOK,(STRPTR)MSG_PREFSGADOK_STR},
  163.     {MSG_PREFSGADEXT,(STRPTR)MSG_PREFSGADEXT_STR},
  164.     {MSG_PREFSGADCOM,(STRPTR)MSG_PREFSGADCOM_STR},
  165.     {MSG_PREFSGADREP,(STRPTR)MSG_PREFSGADREP_STR},
  166.     {MSG_MAINASLSOURCE,(STRPTR)MSG_MAINASLSOURCE_STR},
  167.     {ERROR_MAINASLSOURCE,(STRPTR)ERROR_MAINASLSOURCE_STR},
  168.     {MSG_MAINASLDIR,(STRPTR)MSG_MAINASLDIR_STR},
  169.     {ERROR_MAINASLDIR,(STRPTR)ERROR_MAINASLDIR_STR},
  170.     {ERROR_MAINWINDOW,(STRPTR)ERROR_MAINWINDOW_STR},
  171.     {ERROR_MAINSOURCEFILE,(STRPTR)ERROR_MAINSOURCEFILE_STR},
  172.     {ERROR_MAINDIR,(STRPTR)ERROR_MAINDIR_STR},
  173.     {ERROR_MAINNOTEXT,(STRPTR)ERROR_MAINNOTEXT_STR},
  174.     {ERROR_MAINLIB,(STRPTR)ERROR_MAINLIB_STR},
  175.     {ERROR_MAINSETUP,(STRPTR)ERROR_MAINSETUP_STR},
  176.     {ERROR_MAINWIND,(STRPTR)ERROR_MAINWIND_STR},
  177.     {ERROR_MAINPORT,(STRPTR)ERROR_MAINPORT_STR},
  178.     {ERROR_MAINBROKER,(STRPTR)ERROR_MAINBROKER_STR},
  179.     {ERROR_MAINHOTKEY,(STRPTR)ERROR_MAINHOTKEY_STR},
  180.     {ERROR_MAINCOM,(STRPTR)ERROR_MAINCOM_STR},
  181.     {MSG_TITLE_MAINWINDOW,(STRPTR)MSG_TITLE_MAINWINDOW_STR},
  182.     {MSG_TITLE_ARCHIWINDOW,(STRPTR)MSG_TITLE_ARCHIWINDOW_STR},
  183.     {MSG_TITLE_PREFSWINDOW,(STRPTR)MSG_TITLE_PREFSWINDOW_STR},
  184.     {MSG_COPYRIGHT,(STRPTR)MSG_COPYRIGHT_STR},
  185.     {MSG_USE,(STRPTR)MSG_USE_STR},
  186.     {MSG_ACTIVE,(STRPTR)MSG_ACTIVE_STR},
  187. };
  188.  
  189. #endif /* CATCOMP_ARRAY */
  190.  
  191.  
  192. /****************************************************************************/
  193.  
  194.  
  195. #ifdef CATCOMP_BLOCK
  196.  
  197. static const char CatCompBlock[] =
  198. {
  199.     "\x00\x00\x00\x00\x00\x08"
  200.     MSG_MAINGADSOURCE_STR "\x00\x00"
  201.     "\x00\x00\x00\x01\x00\x06"
  202.     MSG_MAINGADDEST_STR "\x00"
  203.     "\x00\x00\x00\x02\x00\x02"
  204.     MSG_MAINGAD20_STR "\x00\x00"
  205.     "\x00\x00\x00\x03\x00\x02"
  206.     MSG_MAINGAD30_STR "\x00\x00"
  207.     "\x00\x00\x00\x04\x00\x0A"
  208.     MSG_MAINGADARCHI_STR "\x00"
  209.     "\x00\x00\x00\x05\x00\x06"
  210.     MSG_MAINGADQUIT_STR "\x00\x00"
  211.     "\x00\x00\x00\x06\x00\x06"
  212.     MSG_MAINGADHIDE_STR "\x00\x00"
  213.     "\x00\x00\x00\x07\x00\x04"
  214.     MSG_MAINGADOK_STR "\x00\x00"
  215.     "\x00\x00\x00\x08\x00\x02"
  216.     MSG_ARCHIGAD00_STR "\x00\x00"
  217.     "\x00\x00\x00\x09\x00\x10"
  218.     MSG_ARCHIGADLIST_STR "\x00\x00"
  219.     "\x00\x00\x00\x0A\x00\x04"
  220.     MSG_ARCHIGADOK_STR "\x00"
  221.     "\x00\x00\x00\x0B\x00\x0A"
  222.     MSG_ARCHIGADDEL_STR "\x00"
  223.     "\x00\x00\x00\x0C\x00\x06"
  224.     MSG_ARCHIGADUSE_STR "\x00\x00"
  225.     "\x00\x00\x00\x0D\x00\x06"
  226.     MSG_ARCHIGADADD_STR "\x00\x00"
  227.     "\x00\x00\x00\x0E\x00\x06"
  228.     MSG_ARCHIGADSAVE_STR "\x00"
  229.     "\x00\x00\x00\x0F\x00\x06"
  230.     MSG_ARCHIGADEDIT_STR "\x00"
  231.     "\x00\x00\x00\x10\x00\x08"
  232.     MSG_PREFSGADCANCEL_STR "\x00"
  233.     "\x00\x00\x00\x11\x00\x04"
  234.     MSG_PREFSGADOK_STR "\x00"
  235.     "\x00\x00\x00\x12\x00\x0C"
  236.     MSG_PREFSGADEXT_STR "\x00\x00"
  237.     "\x00\x00\x00\x13\x00\x0A"
  238.     MSG_PREFSGADCOM_STR "\x00\x00"
  239.     "\x00\x00\x00\x14\x00\x0C"
  240.     MSG_PREFSGADREP_STR "\x00\x00"
  241.     "\x00\x00\x00\x15\x00\x22"
  242.     MSG_MAINASLSOURCE_STR "\x00"
  243.     "\x00\x00\x00\x16\x00\x26"
  244.     ERROR_MAINASLSOURCE_STR "\x00\x00"
  245.     "\x00\x00\x00\x17\x00\x1A"
  246.     MSG_MAINASLDIR_STR "\x00"
  247.     "\x00\x00\x00\x18\x00\x24"
  248.     ERROR_MAINASLDIR_STR "\x00\x00"
  249.     "\x00\x00\x00\x19\x00\x20"
  250.     ERROR_MAINWINDOW_STR "\x00"
  251.     "\x00\x00\x00\x1A\x00\x1C"
  252.     ERROR_MAINSOURCEFILE_STR "\x00\x00"
  253.     "\x00\x00\x00\x1B\x00\x12"
  254.     ERROR_MAINDIR_STR "\x00"
  255.     "\x00\x00\x00\x1C\x00\x12"
  256.     ERROR_MAINNOTEXT_STR "\x00"
  257.     "\x00\x00\x00\x1D\x00\x0E"
  258.     ERROR_MAINLIB_STR "\x00\x00"
  259.     "\x00\x00\x00\x1E\x00\x1A"
  260.     ERROR_MAINSETUP_STR "\x00"
  261.     "\x00\x00\x00\x1F\x00\x18"
  262.     ERROR_MAINWIND_STR "\x00\x00"
  263.     "\x00\x00\x00\x20\x00\x1A"
  264.     ERROR_MAINPORT_STR "\x00\x00"
  265.     "\x00\x00\x00\x21\x00\x12"
  266.     ERROR_MAINBROKER_STR "\x00"
  267.     "\x00\x00\x00\x22\x00\x10"
  268.     ERROR_MAINHOTKEY_STR "\x00\x00"
  269.     "\x00\x00\x00\x23\x00\x16"
  270.     ERROR_MAINCOM_STR "\x00"
  271.     "\x00\x00\x00\x24\x00\x14"
  272.     MSG_TITLE_MAINWINDOW_STR "\x00"
  273.     "\x00\x00\x00\x25\x00\x10"
  274.     MSG_TITLE_ARCHIWINDOW_STR "\x00\x00"
  275.     "\x00\x00\x00\x26\x00\x0C"
  276.     MSG_TITLE_PREFSWINDOW_STR "\x00"
  277.     "\x00\x00\x00\x27\x00\x1E"
  278.     MSG_COPYRIGHT_STR "\x00"
  279.     "\x00\x00\x00\x28\x00\x24"
  280.     MSG_USE_STR "\x00"
  281.     "\x00\x00\x00\x29\x00\x34"
  282.     MSG_ACTIVE_STR "\x00\x00"
  283. };
  284.  
  285. #endif /* CATCOMP_BLOCK */
  286.  
  287.  
  288. /****************************************************************************/
  289.  
  290.  
  291. struct LocaleInfo
  292. {
  293.     APTR li_LocaleBase;
  294.     APTR li_Catalog;
  295. };
  296.  
  297.  
  298. #ifdef CATCOMP_CODE
  299.  
  300. STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
  301. {
  302. LONG   *l;
  303. UWORD  *w;
  304. STRPTR  builtIn;
  305.  
  306.     l = (LONG *)CatCompBlock;
  307.  
  308.     while (*l != stringNum)
  309.     {
  310.         w = (UWORD *)((ULONG)l + 4);
  311.         l = (LONG *)((ULONG)l + (ULONG)*w + 6);
  312.     }
  313.     builtIn = (STRPTR)((ULONG)l + 6);
  314.  
  315. #define XLocaleBase LocaleBase
  316. #define LocaleBase li->li_LocaleBase
  317.     
  318.     if (LocaleBase)
  319.         return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
  320. #define LocaleBase XLocaleBase
  321. #undef XLocaleBase
  322.  
  323.     return(builtIn);
  324. }
  325.  
  326.  
  327. #endif /* CATCOMP_CODE */
  328.  
  329.  
  330. /****************************************************************************/
  331.  
  332.  
  333. #endif /* DEARCH_STRINGS_H */
  334.